package com.yj.lottery_system.service;

import com.yj.lottery_system.controller.param.CreateActivityParam;
import com.yj.lottery_system.controller.param.PageParam;
import com.yj.lottery_system.service.dto.ActivityDTO;
import com.yj.lottery_system.service.dto.ActivityDetailDTO;
import com.yj.lottery_system.service.dto.CreateActivityDTO;
import com.yj.lottery_system.service.dto.PageListDTO;
import org.springframework.stereotype.Service;

@Service
public interface IActivityService {
    /**
     * 创建活动
     * @param param
     * @return
     */
    CreateActivityDTO createActivity(CreateActivityParam param);

    /**
     * 分页获取活动基本信息列表
     * @param param
     * @return
     */
    PageListDTO<ActivityDTO> findActivityList(PageParam param);

    /**
     * 获取活动详情信息
     * @param activityId
     * @return
     */
    ActivityDetailDTO getActivityDetailFind(Long activityId);

    /**
     * 缓存活动详细信息（读取表数据
     */
    void cacheActivity(Long activityId);

}
